package com.spic.business.plan.supplies.mapper;

import com.spic.business.plan.inspection.domain.PlanInspection;
import com.spic.business.plan.supplies.domain.PlanSupplies;
import com.spic.business.plan.supplies.domain.PlanSuppliesDto;

import java.util.List;

/**
 * 应急物资台账Mapper接口
 *
 * @author spic
 * @date 2021-10-27
 */
public interface PlanSuppliesMapper
{
    /**
     * 查询应急物资台账
     *
     * @param id 应急物资台账主键
     * @return 应急物资台账
     */
    public PlanSupplies selectPlanSuppliesById(Long id);

    /**
     * 查询应急物资台账列表
     *
     * @param planSupplies 应急物资台账
     * @return 应急物资台账集合
     */
    public List<PlanSupplies> selectPlanSuppliesList(PlanSupplies planSupplies);

    /**
     * 获取业务表业务业务主键字段
     * @return
     */
    public List<String> selectPlanSuppliesBusinessKey();

    /**
     * 新增应急物资台账
     *
     * @param planSupplies 应急物资台账
     * @return 结果
     */
    public int insertPlanSupplies(PlanSupplies planSupplies);

    /**
     * 批量插入
     * @param planSupplies
     */
    int batchInsertSupplies(List<PlanSupplies> planSupplies);

    /**
     * 修改应急物资台账
     *
     * @param planSupplies 应急物资台账
     * @return 结果
     */
    public int updatePlanSupplies(PlanSupplies planSupplies);

    /**
     * 根据业务主键更新台账
     * @param planSupplies
     * @return
     */
    int updatePlanSuppliesByBusinessKey(PlanSupplies planSupplies);

    /**
     * 删除应急物资台账
     *
     * @param id 应急物资台账主键
     * @return 结果
     */
    public int deletePlanSuppliesById(Long id);

    /**
     * 批量删除应急物资台账
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deletePlanSuppliesByIds(Long[] ids);
    public List<PlanSupplies> selectTransfer(PlanSupplies planSupplies);


    List<PlanSuppliesDto> selectMater();

    List<PlanInspection> selectMaterAll();
}
